package cn.itcast.com.obstract;

public class demo2 {
}
abstract class BaseEmpolyee{
    private String name;
    private int workId;
    private int salary;

    public BaseEmpolyee(String name, int workId, int salary) {
        this.name = name;
        this.workId = workId;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public int getWorkId() {
        return workId;
    }

    public int getSalary() {
        return salary;
    }

    public void setWorkId(int workId) {
        this.workId = workId;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public abstract void work();
}

class Employee extends BaseEmpolyee{

    public Employee(String name, int workId, int salary) {
        super(name, workId, salary);
    }

    public void work() {
        System.out.println("最累最苦的活");
    }
}

class Manager extends BaseEmpolyee{

    private int bouns;

    public Manager(String name, int workId, int salary) {
        super(name, workId, salary);
    }

    public void work() {
        System.out.println("陪客户吃喝玩乐");
    }

    public int getBouns() {
        return bouns;
    }

    public void setBouns(int bouns) {
        this.bouns = bouns;
    }
}